<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <input type="text" class="inp"><br>
    <input type="text" class="inp1"><br>
    <script>
        // 获取元素绑定事件
        /* document.querySelector('.inp').onclick = function(){
            console.log('xx');
        } */
        document.querySelector('.inp').oninput = function(){
            console.log('xx');
        }
        document.querySelector('.inp1').onchange = function(){
            console.log('xxyyyy');
        }


        let str1 ='aaa';
        let str2 = "bbb";
        let str3 = str1 + str2 + 'haha';
        console.log(str3); 
        let str4 = `${str1}hahha${str2}`;
        console.log(str4);
    </script>
</body>
</html>